
// Boost Includes ==============================================================
#include <boost/python.hpp>
#include <boost/cstdint.hpp>

// Includes ====================================================================
#include <OpenSG/OSGTransform.h>
#include <OpenSG/OSGTransformBase.h>
#include <OsgPtrHelpers.h>

// Using =======================================================================
using namespace boost::python;

// Declarations ================================================================
namespace  {

BOOST_PYTHON_MEMBER_FUNCTION_OVERLOADS(osg_Transform_dump_overloads_0_2, dump, 0, 2)


}// namespace


// Module ======================================================================
void Export_src_pyste_gen_Transform()
{
    scope* osg_TransformBase_scope = new scope(
    class_< osg::TransformBase, bases< osg::Group > , boost::noncopyable >("TransformBase", no_init)
//        .def_readonly("MatrixFieldMask", &osg::TransformBase::MatrixFieldMask)
//        .def_readonly("MTInfluenceMask", &osg::TransformBase::MTInfluenceMask)
        .def("getClassType", &osg::TransformBase::getClassType, return_internal_reference< 1 >())
        .def("getClassTypeId", &osg::TransformBase::getClassTypeId)
        .def("getType", (osg::FieldContainerType& (osg::TransformBase::*)() )&osg::TransformBase::getType, return_internal_reference< 1 >())
        .def("getType", (const osg::FieldContainerType& (osg::TransformBase::*)() const)&osg::TransformBase::getType, return_internal_reference< 1 >())
        .def("getContainerSize", &osg::TransformBase::getContainerSize)
        //.def("getMatrix", (osg::Matrix& (osg::TransformBase::*)() )&osg::TransformBase::getMatrix, return_value_policy< copy_const_reference >())
        .def("getMatrix", (const osg::Matrix& (osg::TransformBase::*)() const)&osg::TransformBase::getMatrix, return_value_policy< copy_const_reference >())
        .def("setMatrix", &osg::TransformBase::setMatrix)
        .def("getBinSize", &osg::TransformBase::getBinSize)
        .def("copyToBin", &osg::TransformBase::copyToBin)
        .def("copyFromBin", &osg::TransformBase::copyFromBin)
        .def("create", &osg::TransformBase::create)
        .def("createEmpty", &osg::TransformBase::createEmpty)
        .def("shallowCopy", &osg::TransformBase::shallowCopy)
        .staticmethod("getClassType")
        .staticmethod("create")
        .staticmethod("createEmpty")
        .staticmethod("getClassTypeId")
    );

    scope().attr("NextFieldId") = (int)osg::TransformBase::NextFieldId;
    scope().attr("MatrixFieldId") = (int)osg::TransformBase::MatrixFieldId;

    delete osg_TransformBase_scope;

    class_< osg::Transform, bases< osg::TransformBase > , boost::noncopyable, osg::TransformRefPtr >("Transform", no_init)
        .def("changed", &osg::Transform::changed)
        .def("accumulateMatrix", &osg::Transform::accumulateMatrix)
        .def("adjustVolume", &osg::Transform::adjustVolume)
        .def("dump", &osg::Transform::dump, osg_Transform_dump_overloads_0_2())
    ;


    register_ptr_to_python<osg::TransformPtr>();
    implicitly_convertible<osg::TransformRefPtr, osg::TransformPtr>();
    implicitly_convertible<osg::TransformPtr, osg::GroupPtr>();

    def("RefPtr", &pyopensg::ToRefPtr<osg::TransformPtr>);
    def("FCPtr", &pyopensg::ToFcPtr<osg::TransformPtr>);
}

